#!/bin/bash
source ~/.bash_profile &&
cd &&
rm -rfv ~/hzcx_doc_temp &&
git clone git@gitee.com:shi_yan_fei/hzcx_doc.git ~/hzcx_doc_temp &&
cd ~/hzcx_doc_temp &&
git checkout pages &&
git merge remotes/origin/gitbook &&
gitbook install &&
#sed -i '/#anchor-navigation-ex-navbar ul {/{n;d}' node_modules/gitbook-plugin-anchor-navigation-ex/assets/style/plugin.css &&
gitbook build &&
sed -i '/#anchor-navigation-ex-navbar ul {/{n;d}' _book/gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css &&
echo replace-begin
chmod +x ./replace.sh &&
./replace.sh ./_book &&
echo replace-end
git add --all &&
git commit -m "修改" &&
git push origin pages | echo pushlish_doc_success
